package com.example.safelib.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder

import com.example.safelib.R
import com.example.safelib.bean.SafeReportBean

class SafeReportAdapter(layoutResId: Int) :
    BaseQuickAdapter<SafeReportBean, BaseViewHolder>(layoutResId) {

    override fun convert(helper: BaseViewHolder, item: SafeReportBean) {
        helper.setText(R.id.item_report_name, item.sensorname)
            .setText(R.id.item_report_value, item.alarmnum.toString() + "")
    }
}
